package com.seeyon.apps.brwh.manager;

import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.util.List;
import java.util.Map;

import com.seeyon.apps.brwh.cn.hz.comm.EsignHttpResponse;
import com.seeyon.apps.brwh.cn.hz.exception.EsignDemoException;
import com.seeyon.apps.brwh.entity.FileMsgEntity;


/**
 * E签宝相关方法
 * @author zgh
 * @version 1.0 Create by 2024/6/5 15:54
 */
public interface SealManager {

  EsignHttpResponse sealPdfByHtml(String eSignAppId,String eSignAppSecret) throws EsignDemoException;

  Map<String,Object> sealPdfByFile(List<FileMsgEntity> fileMsg) throws EsignDemoException, InterruptedException, IOException, NoSuchAlgorithmException;

  EsignHttpResponse downLoadSealPdf(Map<String,Object> map) throws EsignDemoException;

  Map<String,Object> delSealPdf(String signFlowId,String eSignAppId,
                                String eSignAppSecret,List<String> fileId,
                                String certifyID,String firstOrgName,
                                String firstPsnAccount,String secondOrgName,
                                String secondPsnAccount,String reason,String reasonMsg) throws EsignDemoException;


  Map<String,Object> sealCertify(String appId,String appSercert,String orgName,String phone) throws EsignDemoException;

}
